import org.junit.jupiter.api.Test;
import org.junit.platform.commons.util.PackageUtils;

/**
 * @Description
 * @ClassName Solution
 * @Author 山山大魔王
 * @Date 2021/12/9 11:33
 * @Version 1.0
 */

public class Solution {
    public int trailingZeroes(int n) {
        int tra = 1;
        for(int i = 1;i<=n;i++){
            tra *=i;
        }
        System.out.println(tra);
        int count = 0;
        while(tra%10 == 0){
            if(tra==0) break;
            count++;
            tra=tra/10;
        }
        return count;
    }

    @Test
    public void test(){
        System.out.println();
    }
}
